<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>


    <script>
        'use strict'

        //ES6
        //学生的成绩，学生的名字
        //var names = ["tom","jack","haha"];
        //var scores = [100,98,80];

        var map = new Map([['tom',100],['jack',90],['haha',80]]);
        var name = map.get('tom');  //通过key获得value
        map.set('admin',123456);    //新增或修改
        map.delete("tom");          //删除

        var set = new Set([3,1,1,1,1,1])//set可以去重
        set.add(2); //添加！
        set.delete(1);  //删除！
        console.log(set.has(3)) //是否包含某个元素

    </script>

</head>
<body>

</body>
</html>